package com.zkthink.ceres.member.service;

import com.zkthink.base.service.SuperService;
import com.zkthink.ceres.member.dto.MemberAddressSaveDTO;
import com.zkthink.ceres.member.entity.MemberAddress;
import java.util.List;

/**
 * <p>
 * 业务接口 商城会员收货地址
 * </p>
 *
 * @author kellen
 * @date 2020-05-02
 */
public interface MemberAddressService extends SuperService<MemberAddress> {

  List<MemberAddress> queryByMid(Long mid);

  /**
   * 新增收货地址，如果是默认的，需要将之前已设置为默认的地址置为非默认
   */
  void add(MemberAddress memberAddress);

  MemberAddress queryDefaultAddress(Long mid);

}
